﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class UserName_Phone : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6267), new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6270), new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6258), "73402F4C4AE5BB1ACB39A65F97D6850F", "E89EE4C71CCB9C357631A8BC48D8440FEEFD6C9100A9A41EA24F3CB2AB8812D31CEBA17B" });

            migrationBuilder.CreateIndex(
                name: "UserName_Phone",
                table: "User",
                columns: new[] { "UserName", "Phone" },
                unique: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "UserName_Phone",
                table: "User");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 17, 21, 48, 5, 608, DateTimeKind.Local).AddTicks(1), new DateTime(2021, 12, 17, 21, 48, 5, 608, DateTimeKind.Local).AddTicks(5), new DateTime(2021, 12, 17, 21, 48, 5, 607, DateTimeKind.Local).AddTicks(9987), "75A30E14737187E5D47829B62E8CA2EE", "09316C274333E3181819F0BFADC5CF1EFF2F090F3EEB9F8B31E795F83D06CC58DFFE1966" });
        }
    }
}
